<?php 
namespace Topxia\Service\TiXing\Impl;

use Topxia\Service\TiXing\TiXingService;
use Topxia\Service\Common\BaseService;
use Topxia\Common\ArrayToolkit;

class TiXingServiceImpl extends BaseService implements TiXingService
{
    //获取题型信息
   public function get($start, $limit)
   {
        return $this->getTiXingDao()->get($start, $limit);
   }
   //获取题型总数
   public function total()
   {
    return $this->getTiXingDao()->total();
   }
   //添加题型
   public function insert($ptype,$name,$title)
   {
        return $this->getTiXingDao()->insert($ptype,$name,$title);
   }

   //删除题型
   public function delete($pid)
   {
        return $this->getTiXingDao()->delete($pid);
   }


   public function getTiXingDao()
   {
        return $this->createDao('TiXing.TiXingDao');

   }

}



 ?>